/* 全局样式文件 */

/* Element Plus 主题定制 */
:root {
  --el-color-primary: #409eff;
  --el-color-success: #67c23a;
  --el-color-warning: #e6a23c;
  --el-color-danger: #f56c6c;
  --el-color-info: #909399;
  
  --el-border-radius-base: 4px;
  --el-font-size-base: 14px;
}

/* 应用容器样式 */
.app-container { 
  background-color: #f5f5f5;
}

/* 顶部导航栏 */
.app-header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
}

.app-title {
  margin: 0;
  color: var(--el-color-primary);
  font-size: 24px;
  font-weight: bold;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 主内容区域 */
.app-main { 
  /* max-width: 1200px; */
  margin: 1px auto;
  width: 100%;
  /* height: calc(100vh - 60px); */
}

/* 登录页面样式 */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center; 
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--el-color-primary);
}

.login-form {
  padding: 20px 0;
}

.login-form-item {
  margin-bottom: 20px;
}

.login-button {
  width: 100%;
}

/* 患者列表页面样式 */
.patient-list-container {
  background-color: #ffffff;
  border-radius: var(--el-border-radius-base);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.patient-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.patient-list-title {
  margin: 0;
  color: var(--el-color-primary);
}

.patient-table {
  width: 100%;
}

/* 图像查看器样式 */
.image-viewer-container {
  background-color: #ffffff;
  border-radius: var(--el-border-radius-base);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.image-viewer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.image-viewer-title {
  margin: 0;
  color: var(--el-color-primary);
}

.image-container {
  text-align: center;
  margin-bottom: 20px;
}

.image-placeholder {
  width: 100%;
  max-width: 800px;
  height: 500px;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  border-radius: var(--el-border-radius-base);
}

.image-placeholder-text {
  color: var(--el-color-info);
  font-size: 18px;
}

.frame-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.frame-progress {
  flex: 1;
  max-width: 600px;
}

.frame-info {
  font-size: 16px;
  font-weight: bold;
  min-width: 100px;
  text-align: center;
}

.navigation-buttons {
  display: flex;
  gap: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
    height: auto;
    padding: 10px;
  }
  
  .app-main {
    padding: 1px;
  }
  
  .login-card {
    margin: 10px;
  }
  
  .patient-list-container,
  .image-viewer-container {
    padding: 15px;
  }
  
  .frame-controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .frame-progress {
    max-width: 100%;
  }
}